Skip to content

Instantly share code, notes, and snippets.

@rohitg00
rohitg00 / llm-wiki.md
Last active April 27, 2026 11:36 — forked from karpathy/llm-wiki.md
LLM Wiki v2 — extending Karpathy's LLM Wiki pattern with lessons from building agentmemory

LLM Wiki v2

A pattern for building personal knowledge bases using LLMs. Extended with lessons from building agentmemory, a persistent memory engine for AI coding agents.

This builds on Andrej Karpathy's original LLM Wiki idea file. Everything in the original still applies. This document adds what we learned running the pattern in production: what breaks at scale, what's missing, and what separates a wiki that stays useful from one that rots.

What the original gets right

The core insight is correct: stop re-deriving, start compiling. RAG retrieves and forgets. A wiki accumulates and compounds. The three-layer architecture (raw sources, wiki, schema) works. The operations (ingest, query, lint) cover the basics. If you haven't read the original, start there.

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@fboris
fboris / stm_native_bootloader.md
Last active April 27, 2026 11:31
dfu-util command for uploading firmware on ST devices
  1. Let device to enter dfu-mode. And use dfu-util to get available devices

sudo dfu-util -l

It will show like...

Found DFU: [0483:df11] ver=2100, devnum=32, cfg=1, intf=0, alt=3, name="@Device Feature/0xFFFF0000/01*004 g", serial="3262355B3231"
Found DFU: [0483:df11] ver=2100, devnum=32, cfg=1, intf=0, alt=2, name="@OTP Memory /0x1FFF7800/01*512 g,01*016 g", serial="3262355B3231"
Found DFU: [0483:df11] ver=2100, devnum=32, cfg=1, intf=0, alt=1, name="@Option Bytes  /0x1FFFC000/01*016 g", serial="3262355B3231"
@leo-aa88
leo-aa88 / bluetoothctl_guide.md
Created January 12, 2025 01:59
bluetoothctl guide

Guide to Connecting to a Bluetooth Device using bluetoothctl

This guide walks you through the process of connecting to a Bluetooth device on a Linux system using the bluetoothctl command-line tool. It covers initial setup, scanning, pairing, and connecting procedures, along with troubleshooting tips.

Prerequisites

  • A Linux distribution with Bluetooth support (e.g., Arch Linux).
  • The bluez package installed, which provides bluetoothctl and related utilities.
  • A working Bluetooth adapter installed on your system.
  • Sudo privileges to execute commands that require root access.
@dosdude1
dosdude1 / patchgb.sh
Created April 23, 2026 01:49
Geekbench 6 macOS engineering sample detection patch
#!/bin/sh
if [ $# -eq 0 ]; then
echo "Usage: patchgb.sh <path to Geekbench 6.app>"
exit 1
fi
gbPath="$1"
if [ ! -d "$gbPath" ]; then
@W0nderh0y
W0nderh0y / zram.sh
Created March 12, 2025 15:58
Enable ZRAM on Android devices (with Magisk, put under /data/adb/post-fs-data.d/)
#!/system/bin/sh
# Disable existing ZRAM if active
swapoff /dev/block/zram0
# Set up 4GB ZRAM
echo 4294967296 > /sys/block/zram0/disksize # Specify the size in bytes
mkswap /dev/block/zram0
swapon /dev/block/zram0
@sunmeat
sunmeat / requirements.md
Last active April 27, 2026 11:28
вимоги до курсового командного проєкту .NET

Методичні вказівки щодо виконання, оформлення та захисту курсового командного проєкту з .NET

Дата захисту проєкту: СПР411 - 2 травня 2026 року, П35 - 25 березня 2026 року

Приймають: Крістіне Черкезян, Олександр Загоруйко, склад комісії ще уточнюється

Загальні положення

Курсовий проєкт є однією з найважливіших форм підготовки фахівця. Він виконується відповідно до навчальних планів і спрямований переважно на набуття практичних умінь і навичок відповідно до обраної спеціальності.